<template>
  <el-container style="height: 100%; border: 1px solid #eee">
    <el-aside width="20%" style="background-color: #2B2E33">
      <div class="logo">
          <p style="color:#2DAFCB">HAPPY</p>
          <p>MMALL</p>
        </div>
      <el-menu style="background-color: #2B2E33;">
        <el-menu-item index="0" style="color:white;" ><i class="el-icon-setting"></i><router-link to="./shou" tag="span">首页</router-link></el-menu-item>
        <el-submenu index="1">
          <template slot="title">
            <i class="iconfont" style="margin-right:15px">&#xe62a;</i><router-link to="./shopgl" tag="span">商品</router-link>
          </template>
          <el-menu-item-group>
            <el-menu-item index="1-1"><router-link to="./shopgl" tag="span">商品管理</router-link></el-menu-item>
            <el-menu-item index="1-2"><router-link to="./leishop" tag="span">品类管理</router-link></el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title" style="color:white;">
            <i class="iconfont" style="margin-right:15px">&#xe6fd;</i><router-link to="./order" tag="span">订单</router-link>
          </template>
          <el-menu-item-group>
            <el-menu-item index="2-1"><router-link to="./order" tag="span">订单管理</router-link></el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="3" style="color:white;">
          <template slot="title" >
            <i class="iconfont" style="margin-right:15px">&#xe616;</i><router-link to="./userList" tag="span">用户</router-link>
          </template>
          <el-menu-item-group>
            <el-menu-item index=""><router-link to="./userList" tag="span">用户列表</router-link></el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="4" style="color:white;">
          <template slot="title" >
            <i class="iconfont" style="margin-right:15px">&#xe616;</i><router-link to="./userList" tag="span">图表</router-link>
          </template>
          <el-menu-item-group>
            <el-menu-item index="4-1"><router-link to="./echar" tag="span">echars图表</router-link></el-menu-item>
            <el-menu-item index="4-2"><router-link to="./baidu" tag="span">百度地图</router-link></el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        
      </el-menu>
    </el-aside>

    <el-container style="margin:0;padding:0;">
      <el-header style="text-align: right; font-size: 12px">
          <LoginOut></LoginOut>
      </el-header>
      <el-main style="background-color: #F3F3F3">
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import LoginOut from "@/components/login/loginOut"
export default {
  components:{
    LoginOut
  },
  data() {
    return {
    };
  },
  methods:{
     
  },
};
</script>

<style lang="scss" scoped>

.el-header {
  background-color: white;
  color: #333;
  line-height: 60px;
  height: 100vh;
}

.el-aside {
  color: white;
  height: 99vh;
}
.logo {
    font-size: 30px;
    font-weight: bold;
    line-height: 56px;
    padding-left: 20px;
    position: relative;
    > p:last-of-type {
      position: absolute;
      z-index: 6;
      top: 20px;
    }
  }
.el-aside .el-menu-item{
    color:white;
}

.el-menu-item-group{
    background: black;
}
.el-aside span{
    color:white;
}
.el-menu-item.is-active {
    background-color: #2dafcb !important;
  }
</style>